import request from '@/utils/request';

/**
 * 新增物业
 * @param 
 * @returns {AxiosPromise}
 */
export function getAddress(data) {
	return new Promise((resolve, reject) => {
		request({
			url: '/api/config/area',
			method: 'POST',
			data
		}).then(data => {
			if (data.code === 0) {
				resolve(data.data)
			} else {
				reject(data.msg)
			}
		}).catch(error => {
			reject(error);
		})
	});

}

/**
 * 新增物业
 * @param 
 * @returns {AxiosPromise}
 */
export function getNotification() {
	return request({
		url: '/api/system/msg',
		method: 'POST'
	})
}
